home *** CD-ROM | disk | FTP | other *** search
/ PC World 2000 February / PCWorld_2000-02_cd.bin / Software / Vyzkuste / xsetup / _SETUP.2 / Group3 / XQ MSDOSSYS 4.xpl < prev    next >
Text File  |  1999-09-25  |  2KB  |  61 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="1"
  3. "COUNT"="2"
  4. "UIPATH"="System\Windows 95/98 Boot Options"
  5. "NAME"="Delay Options"
  6. "VERSION"="3.13"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Key Delay (sec)"
  9. "TEXT 2"="Menu Delay (sec)"
  10. "DESCRIPTION 1"=""Key Delay" controls how long Windows displays the Message "Starting Windows..." in Windows 95."
  11. "DESCRIPTION 2"="Windows 98 does not support this option."
  12. "DESCRIPTION 3"=""Menu Delay" controls how long the Boot Menu is displayed."
  13. "DESCRIPTION 4"="NOTE: Some of these items may not work on Windows 98 Second Edition."
  14. "AUTHOR"="Xteq Systems"
  15. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  16. "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@gmx.net."
  17.  
  18.  
  19.  
  20. sF="C:\MSDOS.SYS"
  21. sO="OPTIONS"
  22.  
  23. Sub Plugin_Initialize 
  24.  If GetWinVer=1 or GetWinVer=3 then
  25.   Call FileSetAttribute(sf,"S-")
  26.   Call FileSetAttribute(sf,"R-")
  27.   Call FileSetAttribute(sf,"H-")
  28.  
  29.   i=IniReadValue(sf,so,"BootDelay")
  30.   Call SetUIElement(1,i)
  31.  
  32.   i=IniReadValue(sf,so,"BootMenuDelay")
  33.   Call SetUIElement(2,i)
  34.  else
  35.   Disable
  36.  end if
  37. End Sub
  38.  
  39. Sub Plugin_CheckData(ElementIndex)
  40. End Sub
  41.  
  42. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  43.  s=GetUIElement(1)
  44.  Call IniWriteValue(sf,so,"BootDelay",s)
  45.  
  46.  s=GetUIElement(2)
  47.  Call IniWriteValue(sf,so,"BootMenuDelay",s)
  48.  
  49.  Restart
  50. End Sub
  51.  
  52.  
  53. Sub Plugin_Terminate 
  54.  Call FileSetAttribute("C:\MSDOS.SYS","S+")
  55.  Call FileSetAttribute("C:\MSDOS.SYS","R+")
  56.  Call FileSetAttribute("C:\MSDOS.SYS","H+")
  57. End Sub
  58.  
  59.  
  60.  
  61.